package Work;

import java.util.ArrayList;
import java.util.List;

public class HR extends Employee {

	List<Employee> emp = new ArrayList<>();

	public HR(String name, int id, int salary) {
		super(name, id, salary);
	}

	public HR(String name, int id, int salary, List<Employee> emp) {
		super(name, id, salary);
		this.emp = emp;
	}

	public List<Employee> getEmp() {
		return emp;
	}

	public void setEmp(List<Employee> emp) {
		this.emp = emp;
	}
	
	public int getTopSalaryEmployee(){
		return id;
		
	}
	

	@Override
	public String toString() {
		return "HR [emp=" + emp + "]";
	}

}
